package com.ss.android.newmedia.data;

import android.content.Context;

public class Alert {
	private String[] actions;
	private String[] buttons;
	private String content;
	private int latencyInSecond;
	private boolean mValid=false;
	private String pkgname;
	private long rule_id;
	
	public static String extracPkgname(String str){
		try{
			if(str.startsWith("market://")){
				int i=str.indexOf("q=pname");
				if(i!=-1){
					String s=str.substring(i+"q=pname:".length());
					return s;
				}
			}
		}catch(Exception e){
			
		}
		return "";
	}
	
	/*private void handleAction(Context context,int i){
		if((!this.mValid)||(context==null)){
			
		}
	}*/
}
